package com.xinyi.shicihui.dao;

import com.xinyi.shicihui.pojo.entity.Shici;
import com.xinyi.shicihui.pojo.entity.Shiren;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

import java.util.List;

/**
 * @author xinyi
 * @desc
 * @date 2022/1/24
 */
public interface ShiciDao extends MongoRepository<Shici, String> {

    @Query("select id from Shici")
    List<String> findAllIds();

}
